<tr>
    <td align="left" valign="top" width="20%" style="background-color:rgba(0, 0, 0, 0.5);color:#FFF;font-weight:bold;">
	    <div id="menu-left">
	    	<ul style='margin-left:-20px;'>
	        	<li><a href="index.php?m=home&a=index<?php echo constants::$pathUrl;?>">Home</a></li>
	        	
	        	<!-- Quan ly cua thanh vien cap 1 -->
	        	<?php if ($this->dataUser["quyen"] <= "1") :?>
		        	<?php if (isset($this->flagMUser) && $this->flagMUser) :?>
		            <li><a style="color:#3F3;" href="index.php?m=user<?php echo constants::$pathUrl;?>">Quản lý Account</a></li>
		            	<ul>
		            		<li><a style="<?php if($this->cQL){?>color:#3F3;<?php }?>" href="index.php?m=user<?php echo constants::$pathUrl;?>">Quản lý Account</a></li>
		            		<li><a style="<?php if($this->cQLe){?>color:#3F3;<?php }?>" href="index.php?m=user&a=ecode<?php echo constants::$pathUrl;?>">Thay đổi mật mã</a></li>
		            	</ul>
		        	<?php else :?>
		            <li><a href="index.php?m=user<?php echo constants::$pathUrl;?>">Quản lý Account</a></li>
		            <?php endif;?>
		            <?php 
		            $this->iddm = isset($this->iddm) ? $this->iddm : '';
		            $this->subiddm = isset($this->subiddm) ? $this->subiddm : '';
		            $this->menuDanhMuc = isset($this->menuDanhMuc) ? $this->menuDanhMuc : '';
		            if (isset($this->getListDanhMuc) && count($this->getListDanhMuc) > 0) {
		            	if (isset($this->menuDanhMuc) && $this->menuDanhMuc) {
			            	echo "<li><a style='".(($this->menuDanhMuc) ? "color:#3F3;" : "")."' href='index.php?m=danhmuc" . constants::$pathUrl . "'>Quản lý phần tạo thẻ</a>";
			            	echo "<ul style='margin-left:-24px;'>";
				            foreach ($this->getListDanhMuc as $listDanhMuc) {
					            if(is_array($listDanhMuc['value']) && count($listDanhMuc['value']) > 0) {
					            	if (Session::Get('danhmucid')==$listDanhMuc['id']) {
						            	echo "<li><a style='" .((Session::Get('danhmucid')==$listDanhMuc['id']) ? "color:#3F3;" : "")."' href='index.php?m=category&danhmucid=" . $listDanhMuc['id'] . constants::$pathUrl . "'>" . $listDanhMuc['name'] . "</a>";
						            	echo "<ul style='margin-left:-25px;'>";
							            foreach ($listDanhMuc['value'] as $listCate) {
							            	if (is_array($listCate['value']) && count($listCate['value']) > 0) {
							            		if ($this->iddm==$listCate['id']) {
								            		echo "<li><a style='".(($this->iddm==$listCate['id']) ? "color:#3F3;" : "")."' href='index.php?m=scategory&danhmucid=" . $listDanhMuc['id'] . "&iddm=" . $listCate['id'] . constants::$pathUrl . "'>" . $listCate['name'] . "</a>";
								            		echo "<ul style='margin-left:-25px;'>";
								            		foreach ($listCate['value'] as $subCa) {
								            			echo "<li><a style='".(($this->subiddm==$subCa['id']) ? "color:#3F3;" : "")."' href='index.php?m=sanpham&danhmucid=" . $listDanhMuc['id'] . "&iddm=" . $listCate['id'] . "&subiddm=" . $subCa['id'] . constants::$pathUrl . "'>" . $subCa['name'] . "</a></li>";
								            		}
								            		echo "</ul>";
								            		echo "</li>";
							            		} else {
							            			echo "<li><a style='".(($this->iddm==$listCate['id']) ? "color:#3F3;" : "")."' href='index.php?m=scategory&danhmucid=" . $listDanhMuc['id'] . "&iddm=" . $listCate['id'] . constants::$pathUrl . "'>" . $listCate['name'] . "</a>";
							            		}
							            	}else {
							            		echo "<li><a style='".(($this->iddm==$listCate['id']) ? "color:#3F3;" : "")."' href='index.php?m=scategory&danhmucid=" . $listDanhMuc['id'] . "&iddm=" . $listCate['id'] . constants::$pathUrl . "'>" . $listCate['name'] . "</a></li>";
							            	}
							            }
							        	echo "</ul>";
							        	echo "</li>";
					            	} else {
					            		echo "<li><a style='" .((Session::Get('danhmucid')==$listDanhMuc['id']) ? "color:#3F3;" : "")."' href='index.php?m=category&danhmucid=" . $listDanhMuc['id'] . constants::$pathUrl . "'>" . $listDanhMuc['name'] . "</a>";
					            	}
					            } else {
					            	echo "<li><a style='" .((Session::Get('danhmucid')==$listDanhMuc['id']) ? "color:#3F3;" : "")."' href='index.php?m=category&danhmucid=" . $listDanhMuc['id'] . constants::$pathUrl . "'>" . $listDanhMuc['name'] . "</a></li>";
					            }
				            }
				            echo "<li><a style='" . ((isset($this->flagDSP) && $this->flagDSP) ? "color:#3F3;" : "") . "' href='index.php?m=sanpham&a=display" . constants::$pathUrl . "'>Hiển thị khuyến mãi</a></li>";
				            echo "</ul>";
				        	echo "</li>";
		            	} else {
		            		echo "<li><a style='".(($this->menuDanhMuc) ? "color:#3F3;" : "")."' href='index.php?m=danhmuc" . constants::$pathUrl . "'>Quản lý phần tao thẻ</a>";
		            	}
		            } else {
		            	echo "<li><a class='' href='index.php?m=danhmuc&a=edit" . constants::$pathUrl . "'>Tạo mới một danh mục thẻ</a></li>";
			        }
		            ?>
	            <?php endif;?>
	            <!-- Ket thuc quan ly cua thanh vien cap 1 -->
	            
	            <!-- Quan ly duy nhat cua admin cao cap -->
	            <?php if ($this->dataUser["quyen"] == "0") :?>
		            <?php if (isset($this->menuKhoHang) && $this->menuKhoHang) :?>
		            <li><a style="color:#3F3;" href="index.php?m=khohang<?php echo constants::$pathUrl;?>">Quản lý kho hàng</a></li>
		            <?php else :?>
		            <li><a href="index.php?m=khohang<?php echo constants::$pathUrl;?>">Quản lý kho hàng</a></li>
		            <?php endif;?>
		        <?php endif;?>
		        <!-- Ket thuc quan ly duy nhat cua admin cao cap -->
	            
	            <!-- Quan ly cua thanh vien cap 2 -->
	            <?php if ($this->dataUser["quyen"] <= "2") :?>
		            <?php if (isset($this->flagMenuDonHang) && $this->flagMenuDonHang) :?>
		            <li><a style="color:#3F3;" href="index.php?m=home&a=donhang<?php echo constants::$pathUrl;?>">Quản lý đơn hàng</a></li>
		            <?php else :?>
		            <li><a href="index.php?m=home&a=donhang<?php echo constants::$pathUrl;?>">Quản lý đơn hàng</a></li>
		            <?php endif;?>
		        <?php endif;?>
		       	<!-- Ket thuc quan ly cua thanh vien cap 2 -->   

	            <!-- Quan ly cua thanh vien cap 1 -->
	        	<?php if ($this->dataUser["quyen"] <= "1") :?>
	        		<?php if (isset($this->flagMenuService) && $this->flagMenuService) :?>
		            <li><a style="color:#3F3;" href="index.php?m=service<?php echo constants::$pathUrl;?>">Quản lý dịch vụ</a></li>
		            <?php else :?>
		            <li><a href="index.php?m=service<?php echo constants::$pathUrl;?>">Quản lý dịch vụ</a></li>
		            <?php endif;?>
		            
		            <?php if (isset($this->flagMenuHoTro) && $this->flagMenuHoTro) :?>
		            <li><a style="color:#3F3;" href="index.php?m=hotro<?php echo constants::$pathUrl;?>">Hỗ trợ trực tuyến</a></li>
		            <?php else :?>
		            <li><a href="index.php?m=hotro<?php echo constants::$pathUrl;?>">Hỗ trợ trực tuyến</a></li>
		            <?php endif;?>
		            
		            <?php if (isset($this->flagMenuQC) && $this->flagMenuQC) :?>
		            <li><a style="color:#3F3;" href="index.php?m=quangcao<?php echo constants::$pathUrl;?>">Hình ảnh quảng cáo</a></li>
		            <?php else :?>
		            <li><a href="index.php?m=quangcao<?php echo constants::$pathUrl;?>">Hình ảnh quảng cáo</a></li>
		            <?php endif;?>
		            
		            <?php if (isset($this->flagMenuNews) && $this->flagMenuNews) :?>
		            <li><a style="color:#3F3;" href="index.php?m=news&idc=1<?php echo constants::$pathUrl;?>">Quản lý tin tức</a>
		            	<ul>
		                	<li><a <?php echo (isset($this->flagNewKm) && $this->flagNewKm) ? 'style="color:#3F3;"' : '';?> href="index.php?m=news&idc=1<?php echo constants::$pathUrl;?>">Tin khuyến mãi</a></li>
		                    <li><a <?php echo (isset($this->flagNewXh) && $this->flagNewXh) ? 'style="color:#3F3;"' : '';?> href="index.php?m=news&idc=2<?php echo constants::$pathUrl;?>">Tin xã hội</a></li>
		                </ul>
		            </li>
		            <?php else :?>
		            <li><a href="index.php?m=news&idc=1<?php echo constants::$pathUrl;?>">Quản lý tin tức</a></li>
		            <?php endif;?>
		        <?php endif;?>
		        <!-- Ket thuc quan ly cua thanh vien cap 1 -->
	            
	            <li><a href="index.php?m=user&a=login&type=out<?php echo constants::$pathUrl;?>">Thóat</a></li>
	        </ul>
	    </div>
	</td>
    <td align="center" valign="top" width="75%" bgcolor="#E7F3EF" id="content">
      <table width="100%" border="0" cellpadding="5" cellpadding="3" bgcolor="#84FDCC">
        <tr>
          <td>&rArr; <?php echo $this->tpl_title_list != '' ? $this->tpl_title_list : '<b>Not display !</b>'; ?></td>
        </tr>
      </table>
    